<!DOCTYPE HTML>
<div>Tests that detaching a hovered node with dirty distributuion doesn't crash.</div>
<div id='host'><span id="target">Hovered</span></div>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}
var target = document.getElementById('target');
target.addEventListener("mouseover", function(event) {
    if (window.testRunner)
        testRunner.notifyDone();
});
var x = target.offsetLeft + target.offsetWidth / 2;
var y = target.offsetTop + target.offsetHeight / 2;
eventSender.mouseMoveTo(x, y);
document.body.offsetLeft;
host.attachShadow({mode: 'open'});
host.removeChild(target);
</script>
